package cz.khfotbal.dao;

import java.util.List;

import cz.khfotbal.domain.Delegat;
import cz.khfotbal.domain.Match;
import cz.khfotbal.domain.MatchDelegat;
import cz.khfotbal.domain.Referee;
import cz.khfotbal.domain.Season;
import cz.khfotbal.domain.Team;

public interface MatchDao {

	List<Match> findAllMatchesByHomeTeam(Team team);

	void saveMatch(Match match);

	void saveMatchDelegat(MatchDelegat md);

	MatchDelegat getMatchDelegat(Match match, Delegat delegat);

	List<MatchDelegat> getMatchDelegatByMatch(Match match);

	void deleteReferees(Match match);

	void setReferee(Referee main, Match selectedMatch);

	void deleteMatch(Match selectedMatch);
	
	List<Match> findMatchesByDate(String date);

	List<Match> findMatchesBySeasonAndTeam(Season season, Team team);
	
	Match findMatchById(int id);

}
